ARCH=`arch`
if [[ -z "$MY_RUBY_HOME" ]]; then
  RUBY_INCLUDE_PREFIX=/usr
else
  arr=(`echo $MY_RUBY_HOME | tr "/" " "`)
  RUBY_INCLUDE_PREFIX=$rvm_path/src/${arr[4]}
fi
echo "$RUBY_INCLUDE_PREFIX ****"
gcc -fPIC -shared -g -o ruby_ride.so ruby_command.c -I./ -I/usr/include -I/usr/include/glib-2.0/ -I/usr/include/libpurple/ -I$RUBY_INCLUDE_PREFIX/include/ruby/ -I$RUBY_INCLUDE_PREFIX/include/  -I$RUBY_INCLUDE_PREFIX/.ext/include/$ARCH-linux/ -L/usr/lib/ -Wl,-rpath,/home/developer/.rvm/rubies/ruby-1.9.2-p180/lib/ -L/home/developer/.rvm/rubies/ruby-1.9.2-p180/lib/ -I/usr/include -ldl -lpurple -lc -lm -lruby
